package com.yoo.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@TableName("article")
public class Article extends Model<Author> {

	private static final long serialVersionUID = 1L;
	
	@TableId("article_id")
	private Long articleId;
	private String title;

	private Long authorId;
	private String content;
	private String htmlContent;
	private Date createTime;
	private Date updateTime;
	private String category;
	private String tags;
	
	@Override
	protected Serializable pkVal() {
		return this.articleId;
	}
	
	
}
